package com.um.jdy.platform.platform.controller;

import com.um.jdy.common.platform.entity.vo.CompanyVO;
import com.um.jdy.platform.platform.manager.CompanyManager;
import com.um.springboot.starter.annotation.ApiPermission;
import com.um.springboot.starter.annotation.TokenRequired;
import com.um.springboot.starter.orm.controller.BaseController;
import com.um.springboot.starter.orm.entity.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * 控制器：平台信息
 */
@RestController
@RequestMapping("/api/v1/cms/platform/company")
@Api(tags = "平台设置", description = "平台信息")
@ApiPermission("company")
@TokenRequired
public class CompanyController extends BaseController<CompanyManager> {

    /**
     * 详情
     *
     * @return
     */
    @ApiPermission("get")
    @ApiOperation("详情")
    @GetMapping
    public Response<CompanyVO> get() {
        return manager.get();
    }

}
